package com.taotao.config;


import com.taotao.config.service.ConfigClientService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 余胜军
 * @ClassName MayiktCloudConfig
 * @qq 644064779
 * @addres www.mayikt.com
 * 微信:yushengjun644
 */
@Configuration
public class MayiktCloudAutoConfiguration {

    @Bean
    public MayiktBeanDefinitionRegistry mayiktBeanDefinitionRegistry() {
        return new MayiktBeanDefinitionRegistry();
    }

    @Bean
    public RefreshScope refreshScope() {
        return new RefreshScope();
    }

    @Bean
    public ConfigClientService configClientService() {
        return new ConfigClientService();
    }

    @Bean
    public StartReadConfiguration startReadConfiguration() {
        return new StartReadConfiguration();
    }

    @Bean
    public MayiktCloudClientConfig mayiktCloudClientConfig() {
        return new MayiktCloudClientConfig();
    }
}
